package cn.drew.org.mapper;

import cn.drew.org.domain.Employee;
import cn.drew.org.query.EmployeeQuery;

import java.util.List;


public interface EmployeeMapper {
    //添加
    void add(Employee employee);
    //修改
    void update(Employee employee);
    //删除
    void delete(Long id);
    //查找一个
    Employee findById(Long id);
    //查找所有
    List<Employee> findAll();
    //分页条数
    Integer queryByCount(EmployeeQuery employeeQuery);
    //分页查找数据
    List<Employee> queryByPage(EmployeeQuery employeeQuery);

    void patchDelete(List<Long> ids);
}
